const express = require('express')

const app = express()
//创建路由
app.get('/', (req, res) => {
    res.setHeader('Content-Type', 'text/html; charset=utf-8')
    res.end('你好')   
})

app.listen(3000, () => {
    console.log('服务器启动了')
})